<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>海洋塑料垃圾清理计划 - 赞助详情 | SocialHub</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4361ee;
            --primary-light: #eef0ff;
            --primary-dark: #3a0ca3;
            --secondary: #f72585;
            --accent: #4cc9f0;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --success: #38b000;
            --warning: #ffaa00;
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: #f5f7ff;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: white;
            box-shadow: 0 2px 15px rgba(0,0,0,0.05);
            padding: 0.75rem 1rem;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .main-container {
            padding: 2rem 0;
        }
        
        .breadcrumb {
            background-color: transparent;
            padding: 0;
            margin-bottom: 1.5rem;
        }
        
        .breadcrumb-item a {
            color: var(--gray);
            text-decoration: none;
        }
        
        .breadcrumb-item.active {
            color: var(--primary);
        }
        
        .project-title {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--primary-dark);
            line-height: 1.3;
        }
        
        .author-section {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .author-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-info {
            flex: 1;
        }
        
        .author-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
        }
        
        .author-meta {
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        .follow-btn {
            background-color: white;
            border: 1px solid var(--primary);
            color: var(--primary);
            padding: 0.5rem 1.25rem;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .follow-btn:hover, .follow-btn.following {
            background-color: var(--primary);
            color: white;
        }
        
        .gallery-container {
            background-color: white;
            border-radius: 10px;
            padding: 1rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .main-image {
            width: 100%;
            height: 400px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 1rem;
            cursor: pointer;
        }
        
        .thumbnail-container {
            display: flex;
            gap: 0.75rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
        }
        
        .thumbnail {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 6px;
            cursor: pointer;
            opacity: 0.7;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        
        .thumbnail:hover, .thumbnail.active {
            opacity: 1;
            border: 2px solid var(--primary);
        }
        
        .project-details {
            background-color: white;
            border-radius: 10px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .section-heading {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1.25rem;
            color: var(--primary-dark);
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--primary-light);
        }
        
        .project-description {
            line-height: 1.8;
            margin-bottom: 1.5rem;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
            text-align: center;
        }
        
        .stat-item {
            padding: 1rem;
            background-color: var(--primary-light);
            border-radius: 8px;
        }
        
        .stat-value {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.25rem;
        }
        
        .stat-label {
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        .progress-container {
            margin: 1.5rem 0;
        }
        
        .progress-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }
        
        .progress-title {
            font-weight: 600;
        }
        
        .progress-stats {
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        .progress-bar {
            height: 10px;
            background-color: var(--light-gray);
            border-radius: 5px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            background-color: var(--success);
            border-radius: 5px;
            width: 68%;
        }
        
        .meta-info {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1.25rem;
            margin: 1.5rem 0;
        }
        
        .meta-item {
            display: flex;
            flex-direction: column;
        }
        
        .meta-label {
            color: var(--gray);
            font-size: 0.9rem;
            margin-bottom: 0.25rem;
        }
        
        .meta-value {
            font-weight: 600;
        }
        
        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin: 1.5rem 0;
        }
        
        .tag {
            background-color: var(--primary-light);
            color: var(--primary);
            padding: 0.35rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            text-decoration: none;
            transition: all 0.2s;
        }
        
        .tag:hover {
            background-color: var(--primary);
            color: white;
        }
        
        .action-buttons {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }
        
        .primary-action {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.85rem 2rem;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .primary-action:hover {
            background-color: var(--primary-dark);
            transform: translateY(-2px);
        }
        
        .secondary-action {
            background-color: white;
            border: 1px solid var(--light-gray);
            color: var(--dark);
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .secondary-action:hover {
            background-color: var(--light);
            border-color: var(--gray);
        }
        
        .social-actions {
            display: flex;
            gap: 1rem;
            margin-left: auto;
        }
        
        .social-action {
            background: none;
            border: none;
            color: var(--gray);
            padding: 0.75rem;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .social-action:hover {
            background-color: var(--primary-light);
            color: var(--primary);
        }
        
        .social-action.liked {
            color: var(--secondary);
        }
        
        .social-action.saved {
            color: var(--primary);
        }
        
        .updates-section, .comments-section {
            background-color: white;
            border-radius: 10px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .update-card {
            padding: 1.25rem 0;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .update-card:last-child {
            border-bottom: none;
        }
        
        .update-date {
            color: var(--gray);
            font-size: 0.9rem;
            margin-bottom: 0.75rem;
        }
        
        .update-content {
            margin-bottom: 1rem;
        }
        
        .update-images {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 1rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
        }
        
        .update-image {
            width: 150px;
            height: 150px;
            object-fit: cover;
            border-radius: 6px;
            flex-shrink: 0;
        }
        
        .comment-form {
            margin-bottom: 2rem;
        }
        
        .comment-input {
            width: 100%;
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            padding: 1rem;
            resize: none;
            margin-bottom: 1rem;
            font-family: inherit;
        }
        
        .comment-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
        }
        
        .comment-actions {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
        }
        
        .cancel-btn {
            background: none;
            border: none;
            color: var(--gray);
            padding: 0.75rem 1.5rem;
            cursor: pointer;
        }
        
        .post-btn {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
        }
        
        .comment-filters {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .comment-count {
            font-weight: 600;
        }
        
        .comment-sort {
            color: var(--primary);
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .comment-list {
            margin-bottom: 2rem;
        }
        
        .comment-item {
            padding: 1.25rem 0;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .comment-item:last-child {
            border-bottom: none;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.75rem;
        }
        
        .comment-author {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-name {
            font-weight: 600;
        }
        
        .comment-time {
            color: var(--gray);
            font-size: 0.85rem;
        }
        
        .comment-content {
            margin-bottom: 0.75rem;
        }
        
        .comment-actions {
            display: flex;
            gap: 1.5rem;
        }
        
        .comment-action {
            color: var(--gray);
            background: none;
            border: none;
            cursor: pointer;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        .comment-action.liked {
            color: var(--secondary);
        }
        
        .reply-form {
            margin-top: 1rem;
            margin-bottom: 1rem;
            padding-left: 2rem;
        }
        
        .reply-input {
            width: 100%;
            border: 1px solid var(--light-gray);
            border-radius: 6px;
            padding: 0.75rem;
            resize: none;
            margin-bottom: 0.75rem;
            font-family: inherit;
            font-size: 0.9rem;
        }
        
        .reply-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.75rem;
        }
        
        .reply-btn {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            font-size: 0.9rem;
            cursor: pointer;
        }
        
        .replies {
            margin-top: 1rem;
            padding-left: 2rem;
        }
        
        .reply-item {
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .similar-projects {
            margin-top: 3rem;
        }
        
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        
        .project-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            transition: transform 0.2s;
        }
        
        .project-card:hover {
            transform: translateY(-5px);
        }
        
        .project-card-image {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }
        
        .project-card-content {
            padding: 1rem;
        }
        
        .project-card-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .project-card-meta {
            color: var(--gray);
            font-size: 0.85rem;
            display: flex;
            justify-content: space-between;
        }
        
        @media (max-width: 992px) {
            .main-image {
                height: 300px;
            }
            
            .action-buttons {
                flex-direction: column;
            }
            
            .social-actions {
                margin-left: 0;
                width: 100%;
                justify-content: space-between;
            }
        }
        
        @media (max-width: 768px) {
            .project-title {
                font-size: 1.75rem;
            }
            
            .main-image {
                height: 250px;
            }
            
            .thumbnail {
                width: 80px;
                height: 80px;
            }
            
            .stats-grid {
                grid-template-columns: 1fr 1fr;
            }
            
            .primary-action, .secondary-action {
                width: 100%;
                justify-content: center;
            }
        }
        
        @media (max-width: 576px) {
            .project-title {
                font-size: 1.5rem;
            }
            
            .main-image {
                height: 200px;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
            
            .social-actions {
                flex-wrap: wrap;
            }
            
            .social-action {
                flex: 1;
                justify-content: center;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a href="#" class="logo">
                <i class="fas fa-handshake"></i>
                SocialHub
            </a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            
            <div class="search-container mx-3">
                <div class="input-group">
                    <span class="input-group-text bg-transparent border-right-0">
                        <i class="fas fa-search text-gray-400"></i>
                    </span>
                    <input type="text" class="form-control border-left-0" placeholder="搜索赞助项目、标签或关键词...">
                </div>
            </div>
            
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto align-items-center gap-3">
                    <li class="nav-item">
                        <a href="#" class="nav-link">赞助列表</a>
                    </li>
                    <li class="nav-item">
                        <a href="#" class="nav-link">发现</a>
                    </li>
                    <li class="nav-item">
                        <a href="#" class="nav-link">消息</a>
                    </li>
                    <li class="nav-item">
                        <button class="btn btn-primary">
                            <i class="fas fa-plus me-1"></i> 发起赞助
                        </button>
                    </li>
                    <li class="nav-item">
                        <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="rounded-circle" style="width: 38px; height: 38px; object-fit: cover;">
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <div class="container main-container">
        <!-- 面包屑导航 -->
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="#">首页</a></li>
                <li class="breadcrumb-item"><a href="#">赞助列表</a></li>
                <li class="breadcrumb-item"><a href="#">环保公益</a></li>
                <li class="breadcrumb-item active" aria-current="page">海洋塑料垃圾清理计划</li>
            </ol>
        </nav>
        
        <div class="row">
            <!-- 左侧主内容区 -->
            <div class="col-lg-8">
                <!-- 项目标题 -->
                <h1 class="project-title">海洋塑料垃圾清理计划 - 保护蓝色家园</h1>
                
                <!-- 作者信息 -->
                <div class="author-section">
                    <img src="https://picsum.photos/100/100?random=10" alt="绿色未来环保协会头像" class="author-avatar">
                    <div class="author-info">
                        <div class="author-name">绿色未来环保协会</div>
                        <div class="author-meta">
                            <span>环保组织 · 已认证</span>
                            <span class="mx-2">|</span>
                            <span>发布于 2023年6月15日</span>
                        </div>
                    </div>
                    <button class="follow-btn">
                        <i class="fas fa-user-plus me-1"></i> 关注
                    </button>
                </div>
                
                <!-- 图片展示区 -->
                <div class="gallery-container">
                    <img src="https://picsum.photos/1200/600?random=20" alt="海洋塑料垃圾清理计划主图" class="main-image" id="mainImage">
                    
                    <div class="thumbnail-container">
                        <img src="https://picsum.photos/1200/600?random=20" alt="海洋塑料垃圾清理计划缩略图1" class="thumbnail active" data-img="https://picsum.photos/1200/600?random=20">
                        <img src="https://picsum.photos/1200/600?random=21" alt="海洋塑料垃圾清理计划缩略图2" class="thumbnail" data-img="https://picsum.photos/1200/600?random=21">
                        <img src="https://picsum.photos/1200/600?random=22" alt="海洋塑料垃圾清理计划缩略图3" class="thumbnail" data-img="https://picsum.photos/1200/600?random=22">
                        <img src="https://picsum.photos/1200/600?random=23" alt="海洋塑料垃圾清理计划缩略图4" class="thumbnail" data-img="https://picsum.photos/1200/600?random=23">
                        <img src="https://picsum.photos/1200/600?random=24" alt="海洋塑料垃圾清理计划缩略图5" class="thumbnail" data-img="https://picsum.photos/1200/600?random=24">
                    </div>
                </div>
                
                <!-- 项目详情 -->
                <div class="project-details">
                    <h2 class="section-heading">项目详情</h2>
                    
                    <div class="project-description">
                        <p>海洋塑料污染正日益严重地威胁着我们的蓝色星球。据统计，每年有超过800万吨塑料进入海洋，对海洋生态系统造成毁灭性影响。我们的海洋塑料垃圾清理计划旨在通过以下方式应对这一挑战：</p>
                        <br>
                        <p>1. 组织志愿者团队定期进行沿海地区塑料垃圾清理活动，重点清理海滩和近岸海域的塑料废弃物。</p>
                        <p>2. 与科研机构合作，对收集的塑料垃圾进行分类和研究，为减少海洋污染提供数据支持。</p>
                        <p>3. 开展海洋环保教育活动，提高公众对海洋塑料污染危害的认识，倡导减少塑料使用的生活方式。</p>
                        <p>4. 与企业合作，探索回收塑料垃圾的再利用途径，推动循环经济模式。</p>
                        <br>
                        <p>目前，我们已在全国10个沿海城市开展了清理活动，累计动员志愿者5000余人次，清理海洋塑料垃圾约20吨。我们计划在未来一年内将活动扩展到20个沿海城市，预计需要资金支持50万元，主要用于设备采购、交通、宣传材料和志愿者补贴等方面。</p>
                    </div>
                    
                    <div class="stats-grid">
                        <div class="stat-item">
                            <div class="stat-value">¥340,500</div>
                            <div class="stat-label">已筹金额</div>
                        </div>
                        <div class="stat-item">
                            <div class="stat-value">500,000</div>
                            <div class="stat-label">目标金额</div>
                        </div>
                        <div class="stat-item">
                            <div class="stat-value">68%</div>
                            <div class="stat-label">完成进度</div>
                        </div>
                        <div class="stat-item">
                            <div class="stat-value">23天</div>
                            <div class="stat-label">剩余时间</div>
                        </div>
                    </div>
                    
                    <div class="progress-container">
                        <div class="progress-header">
                            <div class="progress-title">筹款进度</div>
                            <div class="progress-stats">已筹 ¥340,500 / 目标 ¥500,000 (68%)</div>
                        </div>
                        <div class="progress-bar">
                            <div class="progress-fill"></div>
                        </div>
                    </div>
                    
                    <h3 class="section-heading">项目信息</h3>
                    
                    <div class="meta-info">
                        <div class="meta-item">
                            <span class="meta-label">项目分类</span>
                            <span class="meta-value">环保公益</span>
                        </div>
                        <div class="meta-item">
                            <span class="meta-label">实施地点</span>
                            <span class="meta-value">全国沿海城市</span>
                        </div>
                        <div class="meta-item">
                            <span class="meta-label">项目周期</span>
                            <span class="meta-value">2023年7月 - 2024年6月</span>
                        </div>
                        <div class="meta-item">
                            <span class="meta-label">受益人群</span>
                            <span class="meta-value">沿海居民及海洋生态系统</span>
                        </div>
                    </div>
                    
                    <div class="tags">
                        <a href="#" class="tag">环保</a>
                        <a href="#" class="tag">海洋保护</a>
                        <a href="#" class="tag">志愿者</a>
                        <a href="#" class="tag">塑料污染</a>
                        <a href="#" class="tag">公益活动</a>
                    </div>
                </div>
                
                <!-- 项目进展 -->
                <div class="updates-section">
                    <h2 class="section-heading">项目进展 <span class="badge bg-primary-light text-primary">5条更新</span></h2>
                    
                    <div class="update-card">
                        <div class="update-date">2023年8月10日 · 第5次更新</div>
                        <div class="update-content">
                            <p>上周六，我们在青岛海滩组织了一次大型清理活动，共有300名志愿者参与，清理塑料垃圾约2.5吨。感谢所有参与者的辛勤付出！下一步我们将在厦门开展类似活动，欢迎当地志愿者报名参加。</p>
                        </div>
                        <div class="update-images">
                            <img src="https://picsum.photos/400/300?random=60" alt="青岛海滩清理活动图片1" class="update-image">
                            <img src="https://picsum.photos/400/300?random=61" alt="青岛海滩清理活动图片2" class="update-image">
                            <img src="https://picsum.photos/400/300?random=62" alt="青岛海滩清理活动图片3" class="update-image">
                        </div>
                    </div>
                    
                    <div class="update-card">
                        <div class="update-date">2023年7月25日 · 第4次更新</div>
                        <div class="update-content">
                            <p>我们与三家塑料回收企业达成合作，将收集的塑料垃圾进行分类回收再利用，所得收益将全部用于项目运营。这将有助于我们实现项目的可持续发展。</p>
                        </div>
                    </div>
                    
                    <button class="btn btn-outline-primary w-100 mt-2">
                        查看全部更新
                    </button>
                </div>
                
                <!-- 留言评论区 -->
                <div class="comments-section">
                    <h2 class="section-heading">留言讨论 <span class="badge bg-primary-light text-primary">42条留言</span></h2>
                    
                    <!-- 评论表单 -->
                    <div class="comment-form">
                        <textarea class="comment-input" rows="4" placeholder="分享你对这个项目的看法..."></textarea>
                        <div class="comment-actions">
                            <button class="cancel-btn">取消</button>
                            <button class="post-btn">发布留言</button>
                        </div>
                    </div>
                    
                    <!-- 评论筛选 -->
                    <div class="comment-filters">
                        <div class="comment-count">42条留言</div>
                        <button class="comment-sort">
                            最新发布 <i class="fas fa-chevron-down"></i>
                        </button>
                    </div>
                    
                    <!-- 评论列表 -->
                    <div class="comment-list">
                        <!-- 评论1 -->
                        <div class="comment-item">
                            <div class="comment-header">
                                <div class="comment-author">
                                    <img src="https://picsum.photos/100/100?random=30" alt="用户头像" class="comment-avatar">
                                    <div>
                                        <div class="author-name">张明</div>
                                        <div class="comment-time">2天前</div>
                                    </div>
                                </div>
                            </div>
                            <div class="comment-content">
                                <p>这个项目非常有意义！我上周参加了上海的清理活动，虽然很累但很有成就感。希望能有更多人关注海洋污染问题，一起行动起来。</p>
                            </div>
                            <div class="comment-actions">
                                <button class="comment-action liked">
                                    <i class="fas fa-heart"></i> 24
                                </button>
                                <button class="comment-action reply-btn">
                                    <i class="fas fa-reply"></i> 回复
                                </button>
                            </div>
                            
                            <!-- 回复表单 (默认隐藏，点击回复按钮显示) -->
                            <div class="reply-form" style="display: none;">
                                <textarea class="reply-input" rows="2" placeholder="回复 @张明..."></textarea>
                                <div class="reply-actions">
                                    <button class="cancel-btn">取消</button>
                                    <button class="reply-btn">回复</button>
                                </div>
                            </div>
                            
                            <!-- 回复列表 -->
                            <div class="replies">
                                <div class="reply-item">
                                    <div class="comment-header">
                                        <div class="comment-author">
                                            <img src="https://picsum.photos/100/100?random=10" alt="绿色未来环保协会头像" class="comment-avatar">
                                            <div>
                                                <div class="author-name">绿色未来环保协会 <span class="badge bg-primary text-white">官方</span></div>
                                                <div class="comment-time">1天前</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="comment-content">
                                        <p>感谢您的参与和支持！我们会继续努力，组织更多这样的活动。</p>
                                    </div>
                                    <div class="comment-actions">
                                        <button class="comment-action">
                                            <i class="far fa-heart"></i> 8
                                        </button>
                                        <button class="comment-action reply-btn">
                                            <i class="fas fa-reply"></i> 回复
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 评论2 -->
                        <div class="comment-item">
                            <div class="comment-header">
                                <div class="comment-author">
                                    <img src="https://picsum.photos/100/100?random=31" alt="用户头像" class="comment-avatar">
                                    <div>
                                        <div class="author-name">李华</div>
                                        <div class="comment-time">5天前</div>
                                    </div>
                                </div>
                            </div>
                            <div class="comment-content">
                                <p>我想了解一下这些收集的塑料垃圾最终是如何处理的？有没有二次污染的风险？</p>
                            </div>
                            <div class="comment-actions">
                                <button class="comment-action">
                                    <i class="far fa-heart"></i> 12
                                </button>
                                <button class="comment-action reply-btn">
                                    <i class="fas fa-reply"></i> 回复
                                </button>
                            </div>
                            
                            <!-- 回复列表 -->
                            <div class="replies">
                                <div class="reply-item">
                                    <div class="comment-header">
                                        <div class="comment-author">
                                            <img src="https://picsum.photos/100/100?random=10" alt="绿色未来环保协会头像" class="comment-avatar">
                                            <div>
                                                <div class="author-name">绿色未来环保协会 <span class="badge bg-primary text-white">官方</span></div>
                                                <div class="comment-time">4天前</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="comment-content">
                                        <p>您好，我们与专业的环保企业合作，对收集的塑料垃圾进行分类处理，可回收的部分将进行再生利用，无法回收的部分将进行无害化处理，确保不会造成二次污染。我们会在下次项目更新中详细介绍处理流程，欢迎关注。</p>
                                    </div>
                                    <div class="comment-actions">
                                        <button class="comment-action liked">
                                            <i class="fas fa-heart"></i> 15
                                        </button>
                                        <button class="comment-action reply-btn">
                                            <i class="fas fa-reply"></i> 回复
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 评论3 -->
                        <div class="comment-item">
                            <div class="comment-header">
                                <div class="comment-author">
                                    <img src="https://picsum.photos/100/100?random=32" alt="用户头像" class="comment-avatar">
                                    <div>
                                        <div class="author-name">王芳</div>
                                        <div class="comment-time">1周前</div>
                                    </div>
                                </div>
                            </div>
                            <div class="comment-content">
                                <p>我是一名海洋生物学专业的学生，非常希望能以专业知识为这个项目贡献力量，请问有什么方式可以参与？</p>
                            </div>
                            <div class="comment-actions">
                                <button class="comment-action">
                                    <i class="far fa-heart"></i> 9
                                </button>
                                <button class="comment-action reply-btn">
                                    <i class="fas fa-reply"></i> 回复
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <button class="btn btn-outline-primary w-100">
                        加载更多留言
                    </button>
                </div>
            </div>
            
            <!-- 右侧边栏 -->
            <div class="col-lg-4">
                <!-- 操作按钮 -->
                <div class="action-buttons sticky-top" style="top: 20px;">
                    <button class="primary-action">
                        <i class="fas fa-heart"></i> 立即赞助
                    </button>
                    
                    <button class="secondary-action">
                        <i class="fas fa-share-alt"></i> 分享项目
                    </button>
                    
                    <div class="social-actions">
                        <button class="social-action like-btn">
                            <i class="far fa-heart"></i>
                            <span>342</span>
                        </button>
                        <button class="social-action save-btn">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                        <button class="social-action">
                            <i class="far fa-comment"></i>
                            <span>42</span>
                        </button>
                    </div>
                </div>
                
                <!-- 赞助者列表 -->
                <div class="project-details">
                    <h2 class="section-heading">爱心赞助者</h2>
                    
                    <div class="d-flex flex-wrap gap-2 mb-3">
                        <img src="https://picsum.photos/100/100?random=40" alt="赞助者头像" class="rounded-circle" style="width: 40px; height: 40px; object-fit: cover;">
                        <img src="https://picsum.photos/100/100?random=41" alt="赞助者头像" class="rounded-circle" style="width: 40px; height: 40px; object-fit: cover;">
                        <img src="https://picsum.photos/100/100?random=42" alt="赞助者头像" class="rounded-circle" style="width: 40px; height: 40px; object-fit: cover;">
                        <img src="https://picsum.photos/100/100?random=43" alt="赞助者头像" class="rounded-circle" style="width: 40px; height: 40px; object-fit: cover;">
                        <img src="https://picsum.photos/100/100?random=44" alt="赞助者头像" class="rounded-circle" style="width: 40px; height: 40px; object-fit: cover;">
                        <div class="rounded-circle bg-primary-light text-primary d-flex align-items-center justify-content-center" style="width: 40px; height: 40px; font-weight: 600;">
                            +287
                        </div>
                    </div>
                    
                    <div class="mb-3">
                        <div class="d-flex justify-content-between mb-1">
                            <span class="font-weight-medium">星辰大海科技有限公司</span>
                            <span class="text-primary font-weight-medium">¥50,000</span>
                        </div>
                        <div class="text-sm text-gray">3天前 · 企业赞助</div>
                    </div>
                    
                    <div class="mb-3">
                        <div class="d-flex justify-content-between mb-1">
                            <span class="font-weight-medium">李海洋</span>
                            <span class="text-primary font-weight-medium">¥10,000</span>
                        </div>
                        <div class="text-sm text-gray">1周前 · 个人赞助</div>
                    </div>
                    
                    <div class="mb-3">
                        <div class="d-flex justify-content-between mb-1">
                            <span class="font-weight-medium">蓝色地球基金会</span>
                            <span class="text-primary font-weight-medium">¥30,000</span>
                        </div>
                        <div class="text-sm text-gray">2周前 · 机构赞助</div>
                    </div>
                    
                    <button class="btn btn-outline-primary w-100">
                        查看全部赞助者
                    </button>
                </div>
                
                <!-- 类似项目推荐 -->
                <div class="similar-projects">
                    <h2 class="section-heading">类似项目推荐</h2>
                    
                    <div class="projects-grid">
                        <div class="project-card">
                            <img src="https://picsum.photos/400/300?random=50" alt="河流污染治理项目" class="project-card-image">
                            <div class="project-card-content">
                                <div class="project-card-title">河流污染治理与生态修复计划</div>
                                <div class="project-card-meta">
                                    <span>环保公益</span>
                                    <span>¥280,350 已筹</span>
                                </div>
                            </div>
                        </div>
                        
                        <div class="project-card">
                            <img src="https://picsum.photos/400/300?random=51" alt="海滩生态保护项目" class="project-card-image">
                            <div class="project-card-content">
                                <div class="project-card-title">海滩生态系统保护与恢复工程</div>
                                <div class="project-card-meta">
                                    <span>环保公益</span>
                                    <span>¥156,800 已筹</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 图片画廊功能
            const thumbnails = document.querySelectorAll('.thumbnail');
            const mainImage = document.getElementById('mainImage');
            
            thumbnails.forEach(thumbnail => {
                thumbnail.addEventListener('click', function() {
                    // 更新主图
                    mainImage.src = this.getAttribute('data-img');
                    mainImage.alt = this.alt;
                    
                    // 更新缩略图活跃状态
                    thumbnails.forEach(t => t.classList.remove('active'));
                    this.classList.add('active');
                });
            });
            
            // 关注按钮功能
            const followBtn = document.querySelector('.follow-btn');
            
            followBtn.addEventListener('click', function() {
                this.classList.toggle('following');
                
                if (this.classList.contains('following')) {
                    this.innerHTML = '<i class="fas fa-check me-1"></i> 已关注';
                } else {
                    this.innerHTML = '<i class="fas fa-user-plus me-1"></i> 关注';
                }
            });
            
            // 点赞功能
            const likeBtn = document.querySelector('.like-btn');
            
            likeBtn.addEventListener('click', function() {
                this.classList.toggle('liked');
                const icon = this.querySelector('i');
                const count = this.querySelector('span');
                let currentCount = parseInt(count.textContent);
                
                if (this.classList.contains('liked')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    count.textContent = currentCount + 1;
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    count.textContent = currentCount - 1;
                }
            });
            
            // 收藏功能
            const saveBtn = document.querySelector('.save-btn');
            
            saveBtn.addEventListener('click', function() {
                this.classList.toggle('saved');
                const icon = this.querySelector('i');
                
                if (this.classList.contains('saved')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.querySelector('span').textContent = '已收藏';
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.querySelector('span').textContent = '收藏';
                }
            });
            
            // 评论回复功能
            const replyBtns = document.querySelectorAll('.reply-btn');
            
            replyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    const replyForm = this.closest('.comment-item, .reply-item').querySelector('.reply-form');
                    
                    if (replyForm) {
                        // 如果存在回复表单，则切换显示状态
                        replyForm.style.display = replyForm.style.display === 'none' ? 'block' : 'none';
                    } else {
                        // 如果不存在回复表单，则创建一个（这里简化处理）
                        const commentItem = this.closest('.comment-item, .reply-item');
                        const newReplyForm = document.createElement('div');
                        newReplyForm.className = 'reply-form';
                        newReplyForm.innerHTML = `
                            <textarea class="reply-input" rows="2" placeholder="写下你的回复..."></textarea>
                            <div class="reply-actions">
                                <button class="cancel-btn">取消</button>
                                <button class="reply-btn">回复</button>
                            </div>
                        `;
                        
                        // 插入到评论内容下方
                        const commentContent = commentItem.querySelector('.comment-content');
                        commentContent.parentNode.insertBefore(newReplyForm, commentContent.nextSibling.nextSibling);
                        
                        // 为新创建的按钮绑定事件
                        newReplyForm.querySelector('.cancel-btn').addEventListener('click', function() {
                            newReplyForm.remove();
                        });
                        
                        newReplyForm.querySelector('.reply-btn').addEventListener('click', function() {
                            // 这里可以添加回复提交逻辑
                            alert('回复功能已触发');
                            newReplyForm.remove();
                        });
                    }
                });
            });
            
            // 取消回复按钮功能
            document.addEventListener('click', function(e) {
                if (e.target.classList.contains('cancel-btn') && e.target.closest('.reply-form')) {
                    e.target.closest('.reply-form').style.display = 'none';
                }
            });
        });
    </script>
</body>
</html>
    
